<%@ page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/taglibs.jsp"%>

<html>
	<head>
		<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
	</head>
		<script language="javascript">
		function submitAction(action){
			if(document.getElementById('title').value == ''){
				alert('请输入网站标题');
				return false;
			}
			if(document.getElementById('memo').value == ''){
				alert('请输入网站备注');
				return false;
			}
			document.siteBasicInfoForm.action = action ;
			document.siteBasicInfoForm.submit();
		}
	</script>

	<body>
		<form method="post" action="" name="siteBasicInfoForm">
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td width="20%" class="td2"> 
						网站标题 <span style="color:red;vertical-align:middle;">*</span> 
					</td>
					<td width="60%" class="td2">
						<input type="text" name="title" size="45" value="${siteBasicInfo.title }"/> 
					</td>
				</tr>
				<tr>
					<td width="20%" class="td2"> 
						网站备注 <span style="color:red;vertical-align:middle;">*</span> 
					</td>
					<td width="60%" class="td2">
						<textarea name="memo" cols="80" rows="5">${siteBasicInfo.memo }</textarea>
					</td>
				</tr>
				
				<tr>
					<td class="td11" align="left" colspan="4">
					    &nbsp;&nbsp;
						<input type="button" name="save" value="确认并保存" onClick="submitAction('siteBasicInfoSave.ac');">
					</td>
				</tr>
			</table>
	</form>
	
	</body>

</html>